package com.app.neteasecourse_aspectj;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.app.neteasecourse_aspectj.anno.ClickButton;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.viewClick).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Log.e("Main>>>", "view is clicked");
            }
        });
    }

    @ClickButton("try to login")
    public void login(View v) {
        Log.e("Main>>>", "login!");
    }

    public void viewClick(View v) {

    }
}